'use strict';
const db = uniCloud.database()
const coll = db.collection('userinfo')
exports.main = async (event, context) => {
	let res = await coll.where({
		_id: event.id
	}).update({
		total: event.total
	})

	return res
};
